export interface Device {
  id: number;
  name: string;
  ip: string;
  port: number;
  protocol: string;
  isConnected: boolean;
}

export enum Status {
  Success = '读取成功',
  Error = '读取失败',
  Pending = '等待读取',
}

export enum TableHeader {
  Address = '地址',
  RegisterValue = '寄存器值',
  Read = "读取",
  Status = '状态',
  LastUpateTime = '时间',
}

export interface TableRow {
  address: number;
  value: number | undefined;
  status: boolean | undefined;
  time: string;
}

export interface TableDataRow {
  [key: string]: any
}
